<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="utf-8"></meta>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
        <title>超级八十</title>
        <script>
            function SendCommand(command)
            {
                fetch('/'+command)
                .then(response => response.text())
                .then(data => alert(data))
                .catch(error => alert('Error:', error));
            }
            
        </script>
         <style>
            body{
                margin: 0;
                padding: 0;
                font-family: Arial, Helvetica, sans-serif;
                background-color: pink;
            }
            .container{
                max-width: 800px;
                margin: 0 auto;
                padding: 20px;
                text-align: center;
            }
            .search-box{
                margin-top: 20px;
                display: inline-block;
                height: 30px;
                padding: 5px 10px;
                background-color: #f0f0f0;
                border: 1px solid #ccc;
                border-radius: 10px;
                text-align: center;
            }
            .button{
                display: inline-block;
                height: auto;
                width: 50%;
                margin-top: 20px;
                padding: 10px 20px;
                background-color: deepskyblue;
                color: white;
                border: none;
                border-radius: 10px;
                text-decoration: none;
                line-height: 2;
                text-align: center;
                box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
                transition: all 0.3s ease;
            }
            .button:hover{
                background-color: skyblue;
                transform: translateY(2px);
                box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
            }
        </style>
        
    </head>
    <body>
        <div class="container">
            <h1>WiFi配置页面</h1>
            <form action="save-config" method='POST'>
                <input type="text" name="ssid" placeholder="输入wifi名称" class="search-box" />
                <input type="text" name="password" placeholder="输入wifi密码" class="search-box" />
                <input type="submit" value="保存" class="button"></input>
            </form>
        </div>
    </body>
</html>